﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MessageServer.threadpool
{
    /**
     * Implement this interface in the class which needs to be scheduled on
     * MSThreadPool.
     * */
    public interface IGatedTask
    {
        /**
         * The MSThreadPool will invoke this function in the executing thread.
         * Implement the functionality to be threaded in this function.
         * */
        object runTask();
    }
}
